package com.mark.service;

import com.github.pagehelper.PageInfo;
import com.mark.common.ServerResponse;
import com.mark.pojo.Product;
import com.mark.vo.ProductDetailVo;

/**
 * Created by Mark on 2018/3/26.
 */
public interface IProductService {
    ServerResponse insertOrUpdateProduct(Product product);

    ServerResponse setSaleStatus(Integer productId,Integer status);

    ServerResponse getProductDetail(Integer productId);

    ServerResponse getProductList(int pageNum, int pageSize,Integer ownerId);

    ServerResponse searchProduct(Integer ownerId,String productName, Integer productId,Integer status ,int pageNum, int pageSize);

    ServerResponse<ProductDetailVo> portalGetProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer ownerId, Integer categoryId, int pageNum, int pageSize, String orderBy);

    ServerResponse getSellerProData(Integer ownerId);
}
